package org.example.school.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生考试成绩表
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("scores")
public class Scores implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 考试ID
     */
    private Long examId;

    /**
     * 学生ID
     */
    private Long studentId;

    /**
     * 学科ID
     */
    private Integer subjectId;

    /**
     * 分数
     */
    private BigDecimal score;

    /**
     * 录入成绩的教师ID
     */
    private Long recordedByTeacherId;

    /**
     * 录入时间
     */
    private LocalDateTime recordedAt;


}